<template>
  <div class="contents">
    <el-row :gutter="5" type="flex" align="middle">
      <el-col :span="5">
        <el-cascader :options="opt1"></el-cascader>
      </el-col>
      <el-col :span="5">
        <el-select placeholder="是否标品">
          <el-option
            v-for="item in opt1"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          ></el-option>
        </el-select>
      </el-col>
      <el-col :span="12">
        <el-input placeholder="请输入商品编码\名称\助记码\别名">
          <el-button slot="append" icon="el-icon-search"></el-button>
        </el-input>
      </el-col>
      <el-col style="text-align: right;">
        <el-button>导入</el-button>
        <el-button>导出</el-button>
        <el-button type="primary" icon="el-icon-plus">新增</el-button>
      </el-col>
    </el-row>
    <el-table :data="table1" style="width: 100%; margin-top: 10px;">
      <el-table-column prop="address" label="商品名称"></el-table-column>
      <el-table-column prop="address" label="单位"></el-table-column>
      <el-table-column prop="address" label="商品编码"></el-table-column>
      <el-table-column prop="address" label="一级分类"></el-table-column>
      <el-table-column prop="address" label="二级分类"></el-table-column>
      <el-table-column prop="address" label="是否标品"></el-table-column>
      <el-table-column prop="address" label="发货日期类型"></el-table-column>
      <el-table-column prop="address" label="发货日期"></el-table-column>
      <el-table-column prop="address" label="操作"></el-table-column>
    </el-table>
    <el-row type="flex" align="middle" justify="space-between">
      <el-col>
        <el-button type="primary">一键保存(当前页)</el-button>
      </el-col>
      <el-col>
        <el-pagination
          background
          layout="total, prev, pager, next,sizes, jumper"
          :page-size="10"
          :page-sizes="[20, 30, 50, 100]"
          :total="0"
        />
      </el-col>
    </el-row>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        opt1: [
          { value: 0, label: '是' },
          { value: 1, label: '否' },
        ],
        table1: [],
      }
    },
  }
</script>

<style lang="scss" scoped>
  .contents {
    padding: 10px 20px;
  }
</style>
